@echo off
set LEX_DIR=..\ex1\Debug\
for %%f in (*.txt) do echo %%f | %LEX_DIR%\ex1
pause